<link rel="stylesheet" type="text/css" href="./public/css/userdd/userdd.css"/>
<link rel="stylesheet" type="text/css" href="./admin/public/css/common.css"/>
<table id='ddbody' border='1' cellspacing='0'>
	<tr>
		<td>订单号</td><td>金额</td><td>下单时间</td><td>状态</td><td>收货人</td><td>收货地址</td><td>联系电话</td><td>操作</td>
	</tr>
	<?php
		if(empty($ret)){die;}
		$status = ['未付款','待发货','已发货','已收货'];
		$_GET['tblname'] = 'shop_addr';
		$_GET['pk'] = 'uid';
		foreach($ret as $v){
		$addr = select(" WHERE uid=$v[uid]")[0];
	echo "<tr>
			 <td>$v[oid]</td><td class='ddrmb'>$v[ormb]</td><td>".date('Y-m-d H:i:s',$v['otime'])."</td><td class='ddsta'>".$status[$v['status']]."</td><td class='ddren'>$addr[name]</td><td class='ddaddr'>".$addr['prov'].$addr['city'].$addr['dist'].$addr['addr']."</td><td class='ddtel'>$addr[tel]</td><td><a href='./index.php?c=meinfo&a=deluserdd&id=$v[oid]'>取消订单</a><br><a href='./index.php?c=meinfo&a=showmx&id=$v[oid]'>查看明细</a><br><a href='./index.php?c=meinfo&a=ok&id=$v[oid]'>确认收货</a></td>		
		  </tr>";
		}
	?>
	<tr><th colspan='8'>
	<?php
		echo "<a href='./index.php?c=meinfo&a=userdd&nowPage=1'> 首页 </a>";
		echo "<a href='./index.php?c=meinfo&a=userdd&nowPage=$prevPage'> 上一页 </a>";
		echo " &nbsp; $allRows 条 $nowPage/$allPage 页 &nbsp; ";
		echo "<a href='./index.php?c=meinfo&a=userdd&nowPage=$nextPage'> 下一页 </a>";
		echo "<a href='./index.php?c=meinfo&a=userdd&nowPage=$allPage'> 尾页 </a>";
	?>
	</th><tr>
</table>